package org.pz.controller;

import org.apache.http.HttpHeaders;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/test")
@RestController
public class TestController {

    @RequestMapping("/i1")
    public String test(HttpServletRequest request){
        System.out.println( request.getHeader(HttpHeaders.HOST) );
        System.out.println("我是服务一。。。。");
        return "11111";
    }

}
